package com.itheima.dao;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {

    Set<Permission> selectByRoleId(@Param("roleId") Integer roleId);

    List<Permission> findPage(@Param("queryString") String queryString);

    int add(Permission permission);

    int findConutById(@Param("id") Integer id);

    void deleteById(@Param("id") Integer id);

    Permission findById(@Param("id") String id);

    int edit(Permission permission);

    List<Permission> findall();

}
